package cn.hunqing.web.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.hunqing.web.mapper.PayCodeMapper;
import cn.hunqing.web.service.PayCodeService;

@Service
public class PayCodeServiceImpl implements PayCodeService {

	@Autowired
	PayCodeMapper payCodeMapper;

	@Override
	public int toUsePayCode(String payCode, int userId) {

		return payCodeMapper.toUsePayCode(payCode, userId);

	}

	@Override
	public String findByPayCode(String payCode) {
		
		return payCodeMapper.findByPayCode(payCode);
	}

}
